#include "Wire.h> const int LED_PIN=9; const int SLAVE_ADDRESS =8; void setup() { Serial.begin(9600); Wire.begin(); pinMode(LED_PIN, OUTPUT); void loop() { Wire.requestFrom(SLAVE_ADDRESS,1); if (Wire.available()) { int brightness = Wire.read(); analogWrite(LED_PIN, brightness); Serial.println(brightness); } delay(100);